package com.example.xm.service.impl;

import com.example.xm.entity.Xuanchuan;
import com.example.xm.entity.XuanchuanItem;
import com.example.xm.mapper.XuanchuanItemMapper;
import com.example.xm.mapper.XuanchuanMapper;
import com.example.xm.service.IXuanchuanItemService;
import com.example.xm.service.IXuanchuanService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class XuanchuanItemService implements IXuanchuanItemService {
    @Autowired
    XuanchuanItemMapper shipinfenleiMapper;
    @Override
    public XuanchuanItem reg(XuanchuanItem fenlei) {
        shipinfenleiMapper.insert(fenlei);
        XuanchuanItem xuanchuanItem = shipinfenleiMapper.selectByPrimaryKey(fenlei.getId());
        return xuanchuanItem;
    }



    @Override
    public void delete(int[] intArray) {
        shipinfenleiMapper.delete(intArray);
    }
}
